import config from '@/utils/config'
import { generateRequest } from '@/utils/request'
const { apiUrlPrefix } = config

/** 护嘱分类列表 */
export const nursingTypeListApi = generateRequest(`${apiUrlPrefix}/pcs/nursingType/getNursingTypePageList`)

/** 新增/修改护嘱分类 */
export const createNursingTypeApi = generateRequest(`${apiUrlPrefix}/pcs/nursingType/insertOrUpdateNursingType`)

/** 护嘱分类删除 */
export const deleteNursingTypeApi = generateRequest(`${apiUrlPrefix}/pcs/nursingType/delNursingType`)

/** 护嘱分类详情 */
export const detailNursingTypeApi = generateRequest(`${apiUrlPrefix}/pcs/nursingType/getNursingTypeById`)

/** 所有护嘱分类下拉 */
export const allNursingTypeListApi = generateRequest(`${apiUrlPrefix}/pcs/nursingType/getNursingTypeList`)
